package com.yunyi.system.mapper;

import com.yunyi.system.domain.EmrCaseSlide;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【emr_case_slide(病例切片)】的数据库操作Mapper
* @createDate 2023-08-29 08:44:39
* @Entity com.yunyi.system.domain.EmrCaseSlide
*/
public interface EmrCaseSlideMapper extends BaseMapper<EmrCaseSlide> {
    /**
     * 根据条件模糊查询预约切片
     * @param apmstatus
     * @return
     */
    List<EmrCaseSlide> selectAllbycondition(@Param("apmstatus") Integer apmstatus, @Param("condition") String condition);

    /**
     * 根据id修改预约状态
     * @param id
     * @return
     */
    int updateApmstatusById(@Param("id") String id,String apmstatus);

    List<EmrCaseSlide> getCaseByHospital(@Param("status") Integer status,@Param("hospital") String hospital);

    List<EmrCaseSlide> getSection(@Param("caseId") String caseId);

    int allotCaseSlide(@Param("ids") List<String> ids);

}




